* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

/* 精准导航栏 */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 1000;
    gap: 40px;
}
.nav-brand {
    color: #1e80ff !important;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.nav-buttons {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-button {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 15px;
    color: #71777c;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}
.nav-button.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1e80ff;
}
.nav-search {
    width: 240px;
    height: 36px;
    margin-left: auto;
    border: 1px solid #e5e6eb;
    border-radius: 18px;
    padding: 0 16px;
    background: #f7f8fa;
    font-size: 14px;
}
.creator-center {
    background: #f2f3f5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2129;
}

/* 三栏布局 */
main {
    display: flex;
    gap: 24px;
    max-width: 1440px;
    margin: 80px auto 0;
    padding: 0 24px;
}
.left-side {
    width: 200px;
    position: sticky;
    top: 80px;
    height: fit-content;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.right-side {
    width: 300px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* 左侧导航 */
.category-list {
    background: #fff;
    border-radius: 8px;
    padding: 8px 0;
}
.category-list button {
    font-size: 16px; /* 原版默认字号 */
    font-weight: 400; /* 常规字重 */
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    border-radius: 4px;
    margin: 4px 0;
    cursor: pointer;
    color: #1d2129;
    transition: all 0.2s;
}
.category-list button.active {
    background: #e8f3ff;
    color: #1e80ff;
    font-weight: 600;
    position: relative; /* 新增定位 */
}

/* 新增选中态指示条 */
.category-list button.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #1e80ff;
    border-radius: 2px;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 16px;
}
.article-img {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 4px;
    background: #f2f3f5 url(https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1d2e862d8d5e4b8b9c4f8b4c4d4b0a6d~tplv-k3u1fbpfcp-zoom-crop-mark:1512:1512:1512:851.awebp) center/cover;
}
.article-content {
    flex: 1;
    min-width: 0;
}
.article-tags {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}
.tag {
    padding: 2px 8px;
    background: #f2f3f5;
    border-radius: 3px;
    font-size: 12px;
    color: #86909c;
}
.article-meta {
    display: flex;
    gap: 16px;
    color: #86909c;
    font-size: 12px;
    margin-top: 8px;
}

/* 切换标签 */
.tab-buttons {
    margin-bottom: 24px;
    border-bottom: 1px solid #f2f3f5;
}
.tab-button {
    border: none;
    background: none;
    padding: 12px 16px;
    font-size: 15px;
    color: #86909c;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.tab-button.active {
    color: #1e80ff;
    background: #e8f3ff;
    border-radius: 4px 4px 0 0;
}
.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1e80ff;
}

/* 右侧边栏 */
.signin-btn {
    width: 100%;
    padding: 8px;
    background: #1e80ff;
    color: white;
    border: none;
    border-radius: 6px;
    margin: 12px 0;
    cursor: pointer;
}
.rank-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}
.rank-item {
    padding: 12px 0;
    border-bottom: 1px solid #f2f3f5;
    color: #1d2129;
}
/* 在原有样式末尾添加右侧边栏新样式 */
/* 新增右侧边栏样式 */
.right-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
}
.greeting-section {
    margin-bottom: 20px;
}
.greeting-section h3 {
    font-size: 16px;
    color: #1d2129;
    margin-bottom: 12px;
}
.signin-btn {
    width: 100%;
    padding: 8px;
    background: #1e80ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}
.rank-section h4 {
    font-size: 15px;
    color: #1d2129;
    margin: 16px 0 12px;
}
.rank-list {
    border-top: 1px solid #f2f3f5;
}
.rank-item {
    padding: 12px 0;
    border-bottom: 1px solid #f2f3f5;
    font-size: 14px;
    line-height: 1.5;
}
/* 覆盖原article-card样式 */
.right-side .article-card {
    display: block;
    padding: 0;
}